Skip to content

refactor: extract method in PdfDocument inicialization - #1663

Open
Rafabng wants to merge 1 commit into
LibrePDF:masterfrom
Rafabng:refactor/pdfwriter-extract-method
Open

Rafabng wants to merge 1 commit into
LibrePDF:masterfrom
Rafabng:refactor/pdfwriter-extract-method

Conversation

@Rafabng

@Rafabng Rafabng commented Nov 17, 2026

Copy link
Copy Markdown

The createPdfDocument() method has been added. This method eliminates the duplication of initial code found within the getInstance() methods. This decision was made based on the "Extract Method" concept from Clean Code principles. It does not alter any significant functionality of the class, nor does it affect its behavior in any way; it simply removes redundant code.

Upon running the tests, I have no errors to report. The code performed as expected and passed the tests.

My name is Rafael Boing, I'm from Brazil.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@sonarqubecloud

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant